package com.votesys.service;

import java.sql.Blob;
import java.util.List;

import com.votesys.model.Votetopic;

public interface ITopicService {
	
	/**
	 * get vote topic by id
	 * @param topicID
	 * @return
	 */
	public Votetopic getVoteTopic(int topicID);
	
	/**
	 * get total vote topic list
	 * @return
	 */
	public List getTopicList();
	
	/**
	 * add new topic into database
	 * @param topicName
	 * @param topicDescription
	 * @param logoName
	 * @param logo
	 * @param showPattern
	 * @param checkOut
	 * @param minCount
	 * @param maxCount
	 * @param flag
	 */
	public void addNewTopic(String topicName,String topicDescription,String logoName,
			byte[] logo,Integer showPattern,Integer checkOut,Integer minCount,Integer maxCount,Integer flag
	);
	
	/**
	 * update vote topic
	 * @param votetopic
	 */
	public void updateTopic(Votetopic votetopic);
	
	/**
	 * delete vote topic
	 * @param votetopic
	 */
	public void deleteTopic(Votetopic votetopic);
	
	/**
	 * get runtime topic
	 * @return
	 */
	public Votetopic getRuntimeTopic();

}
